#!/bin/bash
# Netperf installer
###SHELLPACK preamble netperf-install 2.4.5
GIT_LOCATION=https://github.com/HewlettPackard/netperf
MIRROR_LOCATION="$WEBROOT/netperf/"

###SHELLPACK parseargBegin
###SHELLPACK parseargEnd

###SHELLPACK git_fetch ${VERSION}.tar.gz netperf-${VERSION}

###SHELLPACK build_start netperf-${VERSION}

if [ ! -e ./configure ]; then
	./autogen.sh || die "Failed to run autogen"
fi

export CFLAGS+=" -DWANT_UNIX"

###SHELLPACK build_configure netperf-${VERSION}
###SHELLPACK make_make_install

echo Netperf installed successfully
